/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-11-18
 * Time: 16:18
 */
public class DateUtil {
    public int year;
    public int month;
    public int day;

    public void setDate(int y,int m,int d) {
        year = y;
        month = m;
        day = d;
    }

    public void show(){
        System.out.println("年：" + year + " 月：" + month + " 日：" + day);
    }

    public static void main(String[] args) {
        DateUtil dateUtil = new DateUtil();
        dateUtil.setDate(2022,1,7);
        dateUtil.show();
    }
}
